package com.example.demo.repository.dao;

import com.example.demo.entity.Supervisor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface SupervisorDao extends JpaRepository<Supervisor, String>, JpaSpecificationExecutor<Supervisor> {
    int deleteAllByConsultantId(String consultantId);

    Supervisor findByConsultantId(String id);
}
